﻿<%@ Page Title="Student Email History" Language="C#" MasterPageFile="~/masterpage.master"
	AutoEventWireup="true" CodeFile="StudentEmailHistory.aspx.cs" Inherits="StudentEmailHistory" %>

<%@ Register Src="ucLetters.ascx" TagName="ucLetters" TagPrefix="uc2" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
	<link rel="stylesheet" type="text/css" href="css/admin.css" />
	<script language="javascript" type="text/javascript">
		var controldivname = 'ctl00_ContentPlaceHolder1_rgStudents';
	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
	<table width="95%">
		<tr>
			<td colspan="2">
				<div class="wrap4">
					<div class="abcd">
						<table width="100%">
							<tr>
								<td align="left" valign="middle">
									<asp:Label ID="lblStudentName" runat="server"></asp:Label>
								</td>
								<td align="right" valign="middle">
									<asp:ImageButton ImageUrl="Images/excel_icon2.png" ID="lbExport" runat="server" OnClick="lbExport_Click"
										ToolTip="Export to Excel"></asp:ImageButton>
								</td>
							</tr>
						</table>
						<div class="clr">
						</div>
					</div>
				</div>
			</td>
		</tr>
	</table>
	<table style="width: 900px;">
		<tr>
			<td align="center">
				<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
				</telerik:RadScriptManager>
				<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
					<AjaxSettings>
						<telerik:AjaxSetting AjaxControlID="rgStudentEmailHistory">
							<UpdatedControls>
								<telerik:AjaxUpdatedControl ControlID="rgStudentEmailHistory" />
							</UpdatedControls>
						</telerik:AjaxSetting>
					</AjaxSettings>
				</telerik:RadAjaxManager>
				<telerik:RadGrid runat="server" ID="rgStudentEmailHistory" Width="900px"
					AllowPaging="True" AllowSorting="True" PageSize="20" AutoGenerateColumns="False"
					GridLines="Horizontal" OnItemCreated="reportGrid_ItemCreated" 
					onpageindexchanged="radGrid_PageIndexChanged" 
					onpagesizechanged="radGrid_PageSizeChanged" >
					<ClientSettings>
						<Scrolling AllowScroll="True" SaveScrollPosition="true" UseStaticHeaders="True">
						</Scrolling>
					</ClientSettings>
					<HeaderStyle BackColor="#060606" Font-Bold="True" Height="15px" Wrap="True" Font-Size="9"
						HorizontalAlign="Center" />
					<ItemStyle BackColor="Silver" />
					<AlternatingItemStyle BackColor="LightGray" />
					
					<MasterTableView Width="100%" >
						<Columns>
							<telerik:GridHyperLinkColumn DataNavigateUrlFields="ID,STUDENT_ID" UniqueName="DELIVERY_DATE"
								DataNavigateUrlFormatString="~/WeeklyProgressReport.aspx?id={0}&studentId={1}&reportType=0"
								HeaderText="Delivery Date/Time" DataTextField="DELIVERY_DATE" Target="_blank"
								ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="225" ItemStyle-Width="225">
							</telerik:GridHyperLinkColumn>
							<telerik:GridBoundColumn  DataField="BANV_STATUS" HeaderText="BANV Email" ReadOnly="true"
								ForceExtractValue="Always" ConvertEmptyStringToNull="true" ItemStyle-HorizontalAlign="Center"
								HeaderStyle-Width="225" ItemStyle-Width="225" ItemStyle-Font-Bold="true" ItemStyle-ForeColor="White"  />
							<telerik:GridBoundColumn DataField="PERSONAL_STATUS" HeaderText="Personal Email"
								ItemStyle-HorizontalAlign="Center" HeaderStyle-Width="225" ItemStyle-Width="225" ItemStyle-Font-Bold="true" ItemStyle-ForeColor="White" />
							<telerik:GridBoundColumn DataField="PARENT_STATUS" HeaderText="Parent’s Email" ItemStyle-HorizontalAlign="Center"
								HeaderStyle-Width="225" ItemStyle-Width="225" ItemStyle-Font-Bold="true" ItemStyle-ForeColor="White"  />
						</Columns>
						<PagerStyle Mode="NextPrevNumericAndAdvanced" />
					</MasterTableView>
				</telerik:RadGrid>
			</td>
		</tr>
	</table>
</asp:Content>
